package com.xlh.virtualization.websocket.message;

import com.xlh.enums.WebsocketMessageEnum;
import com.xlh.websocket.message.Message;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author cheer
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class NoticeStopMessage extends Message {

    @Builder
    public NoticeStopMessage(Long userId, String username) {
        super.setType(WebsocketMessageEnum.NOTICE_STOP.getCode());
        super.setUserId(userId);
        super.setUsername(username);
    }
}
